# $OpenBSD: Makefile,v 1.9 2013/03/11 11:44:42 espie Exp $

COMMENT =	proxy that can transliterate japanese

DISTNAME =	japana-2.0.5
REVISION =	0
CATEGORIES =	www japanese converters
HOMEPAGE =	http://www.h.shuttle.de/mitch/japana.en.html

MAINTAINER =	Marc Espie <espie@openbsd.org>

# GPL
PERMIT_PACKAGE_CDROM =	Yes


MASTER_SITES =	http://www.h.shuttle.de/mitch/stuff/
RUN_DEPENDS =	japanese/p5-Text-Kakasi \
		devel/p5-AppConfig \
		www/p5-libwww

NO_TEST =	Yes

do-build:
	cd ${WRKSRC} && pod2man japana >japana.1

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/japana/
	${INSTALL_DATA} ${WRKDIST}/default.conf \
	    ${PREFIX}/share/examples/japana/japana.conf
	${INSTALL_MAN} ${WRKBUILD}/japana.1 ${PREFIX}/man/man1/japana.1
	${INSTALL_SCRIPT} ${WRKDIST}/japana ${PREFIX}/sbin/japana

.include <bsd.port.mk>
